<include file="public@header" />
</head>
<body>
	<div class="layui-fluid">
		<div class="layui-row">
			<div class="layui-page-header">
				<div class="layui-card">
					<div class="layui-page-header-content">
						<div class="layui-card-body">
							<div class="layui-ui-page-header-title" >
								反馈消息
								<span class="layui-badge-rim page-content">反馈消息</span>
							</div>
						</div>
					</div>
				</div>
			</div>

			<div class="layui-page-content">
				<div class="layui-card">
					<div class="layui-card-body">
						<form class="well form-inline margin-top-20" method="post" action="{:url('Feedback/index')}">
							<div class="layui-form-item layuiadmin-card-text" style="margin-bottom: 0;">

								<div class="layui-inline">
									<label class="layui-form-label">状态</label>
									<div class="layui-input-inline">
										<select class="layui-input" name="status">
											<option value="">全部</option>
											<volist name="status" id="v">
												<option value="{$key}" <if condition="input('request.status') neq '' && input('request.status') eq $key">selected</if>>{$v}</option>
											</volist>
										</select>
									</div>
								</div>

								<div class="layui-inline">
									<label class="layui-form-label">提交时间</label>
									<div class="layui-input-inline">
										<input type="text" class="layui-input js-bootstrap-date" name="start_time" id="start_time" value="{:input('request.start_time')}">
									</div>
									<div class="layui-form-mid">-</div>
									<div class="layui-input-inline">
										<input type="text" class="layui-input js-bootstrap-date" name="end_time" id="end_time" value="{:input('request.end_time')}">
									</div>
								</div>

								<div class="layui-inline">
									<label class="layui-form-label">关键字</label>
									<div class="layui-input-inline">
										<input type="text" class="layui-input" name="uid" value="{:input('request.uid')}" placeholder="请输入会员uid">
									</div>
								</div>

								<div class="layui-inline">
									<div class="layui-input-inline">
										<input type="submit" class="layui-btn btn-primary" value="搜索" />
										<a class="layui-btn layui-btn-danger btn-danger" href="{:url('feedback/index')}">清空</a>
									</div>
								</div>
							</div>

						</form>
					</div>
				</div>
			</div>

			<div class="layui-page-content">
				<div class="layui-card">
					<div class="layui-card-body">
						<form method="post" class="js-ajax-form" >


							<table class="layui-table table-hover table-bordered" lay-even="" lay-size="lg">
								<thead>
								<tr>
									<th>ID</th>
									<th>会员</th>
									<th>手机型号</th>
									<th>系统版本</th>
									<th>APP版本</th>
									<th>反馈信息</th>
									<th>图片</th>
									<th>状态</th>
									<th>提交时间</th>
									<th>处理时间</th>
									<th>{:lang('ACTIONS')}</th>
								</tr>
								</thead>
								<tbody>
								<foreach name="lists" item="vo">
									<tr>
										<td>{$vo.id}</td>
										<td>{$vo['userinfo']['user_nickname']} ({$vo['uid']})</td>
										<td>{$vo['model']}</td>
										<td>{$vo['system']}</td>
										<td>{$vo['version']}</td>
										<td><?php echo nl2br($vo['content']);?></td>
										<td>
											<if condition="$vo['thumb']">
												<img src="{$vo['thumb']}" style="max-width:100px;max-height:100px;">
											</if>
										</td>
										<td>{$status[$vo['status']]}</td>
										<td>{:date('Y-m-d H:i:s',$vo['addtime'])}</td>
										<td>
											<if condition="$vo['status'] eq '0'" >
												处理中
												<else/>
												{:date('Y-m-d H:i:s',$vo['uptime'])}
											</if>
										</td>

										<td>
											<if condition="$vo['status'] eq '0'" >
												<a class="layui-bo layui-bo-small layui-bo-checked js-ajax-dialog-btn" href="{:url('Feedback/setstatus',array('id'=>$vo['id']))}" >标记处理</a>
											</if>
											<a class="layui-bo layui-bo-small layui-bo-close js-ajax-delete" href="{:url('Feedback/del',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
										</td>
									</tr>
								</foreach>
								</tbody>
							</table>
							<div class="pagination">{$page}</div>

						</form>
					</div>
				</div>
			</div>

		</div>


	</div>
	<include file="public@script"/>
</body>
</html>